package com.imooc.collection;

import java.util.HashSet;
import java.util.Set;

/**
 * Created by JiaJia on 2019/5/30 0030.
 * 学生类
 */
public class Student implements Comparable<Student> {
    public String id;

    public String name;

    public Set courses;
    public Student(String id,String name){
        this.id=id;
        this.name=name;
        this.courses=new HashSet();
    }

    @Override
    public int compareTo(Student o) {
        return this.id.compareTo(o.id);
    }
}